import request from '@/utils/request'

// 查询异常规则列表
export function listBiAbnormalRule(query) {
  return request({
    url: '/abnormal/BiAbnormalRule/list',
    method: 'get',
    params: query
  })
}

// 查询异常规则详细
export function checkAbnormalByIdS(id) {
  return request({
    url: '/abnormal/BiAbnormalRule/checkAbnormalByIdS/' + id,
    method: 'get'
  })
}
// 查询异常规则详细
export function getBiAbnormalRule(id) {
  return request({
    url: '/abnormal/BiAbnormalRule/' + id,
    method: 'get'
  })
}
// 新增异常规则
export function addBiAbnormalRule(data) {
  return request({
    url: '/abnormal/BiAbnormalRule',
    method: 'post',
    data: data
  })
}

// 修改异常规则
export function updateBiAbnormalRule(data) {
  return request({
    url: '/abnormal/BiAbnormalRule',
    method: 'put',
    data: data
  })
}

// 删除异常规则
export function delBiAbnormalRule(id) {
  return request({
    url: '/abnormal/BiAbnormalRule/' + id,
    method: 'delete'
  })
}
